package third;

public class prostudent implements student,teacher {
    String name;
    String sex;
    int age;
    int tuition;
    int wages;
    public prostudent(String name,String sex,int age,int tuition,int wages){
        this.tuition=tuition;
        this.name=name;
        this.age=age;
        this.sex=sex;
        this.wages = wages;
    }
    public int gettution(){
        return tuition;
    }
    public int getwages() {
        return wages;
    }

    public static void main(String[] args) {
        prostudent p = new prostudent("zhangliang","xiong", 17, 30050, 31050);
        int m=p.getwages()-p.gettution();
        if(m<2000){
            System.out.println("需要贷款");
        }

    }
}
